package com.kaishengit.service;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.AdminDao;
import com.kaishengit.entity.Admin;

@Named
@Transactional
public class AdminService {
	@Inject
	private AdminDao adminDao;
	
	public Admin findByProperty(String name) {
		return adminDao.findByProperty("name",name);
	}

}
